/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --color-orange: #F5A623;
    --color-gold: #FFD700;
    --color-cream: #FDF6E3;
    --color-dark-gray: #333333;
    --color-blue: #1DA1F2;
    --color-light-gray: #f0f0f0;
    --color-white: #ffffff;
    --color-chat-bg: rgba(253, 246, 227, 0.9);
    --color-user-message: #e6f7ff;
    --color-bot-message: #f5f5f5;
    
    /* Fonts */
    --font-primary: 'Arial', sans-serif;
    --font-secondary: 'Helvetica', sans-serif;
    
    /* Sizes */
    --header-height: 4rem;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-cream);
    color: var(--color-dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-blue);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-orange);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-primary);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--color-dark-gray);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--color-orange), var(--color-gold));
    border-radius: 1rem;
}

.highlight {
    color: var(--color-orange);
    font-weight: bold;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(253, 246, 227, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.nav {
    height: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--color-orange), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 70%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-cream);
    transition: right var(--transition-medium);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    right: 0;
}

.nav-item {
    margin: 1rem 0;
    text-align: center;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark-gray);
    transition: color var(--transition-fast);
    padding: 0.5rem 1rem;
    display: inline-block;
}

.nav-link:hover {
    color: var(--color-orange);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.8rem;
    height: 1.3rem;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark-gray);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.parallax-element {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7;
}

/* Placeholder elements for hero section */
.coin-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    background-image: url('../images/itcoin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

.coin-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    background-image: url('../images/itcoin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 8s ease-in-out infinite;
    transform: rotate(30deg);
    opacity: 0.8;
}

.rocket {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 20%;
    background-image: url('../images/itcoin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite;
}

.lambo {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 15%;
    background-image: url('../images/itcoin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 12s ease-in-out infinite;
}

.wings {
    width: 90px;
    height: 90px;
    top: 15%;
    right: 30%;
    background-image: url('../images/itcoin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 9s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 1rem;
    max-width: 800px;
    background-color: rgba(253, 246, 227, 0.7); /* Semi-transparent background to improve readability */
    border-radius: 1rem;
    backdrop-filter: blur(5px); /* Slight blur effect for better text readability */
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.typewriter {
    border-right: 0.1em solid var(--color-orange);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: typing 2s steps(30, end), blink-caret 0.75s step-end infinite;
}

.easter-egg-text {
    display: inline-block;
    white-space: nowrap;
}

.cta-button {
    background: linear-gradient(to right, var(--color-orange), var(--color-gold));
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    width: fit-content;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--color-dark-gray);
    border-bottom: 3px solid var(--color-dark-gray);
    transform: rotate(45deg);
}

/* ===== STORY SECTION ===== */
.story {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.story-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.coin-stack {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
    background-image: url('../images/itcoin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
    transform: rotate(-15deg);
}

.story-content {
    position: relative;
    z-index: 1;
}

.story-text {
    max-width: 800px;
    margin: 0 auto;
}

.story-paragraph {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.marketing-label {
    text-align: center;
    color: var(--color-dark-gray);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.marketing-address {
    text-align: center;
    margin: 0 0 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    overflow: hidden; /* Prevent text overflow */
}

.marketing-address:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.marketing-address:hover::after {
    content: "Click to copy";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--color-white);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    opacity: 0.9;
}

.marketing-address p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.marketing-address p::before {
    content: "";
    margin-right: 0.5rem;
    color: var(--color-orange);
    font-weight: bold;
}

.story-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.story-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform var(--transition-fast);
}

.icon-placeholder:hover {
    transform: scale(1.1);
}

.send-icon::before {
    content: '📤';
    font-size: 2.5rem;
}

.stack-icon::before {
    content: '📚';
    font-size: 2.5rem;
}

.hold-icon::before {
    content: '💎';
    font-size: 2.5rem;
}

/* CTO Showcase Styles */
.cto-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

.cto-image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--color-orange);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cto-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.5);
}

.cto-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cto-slogan {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, var(--color-orange), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cto-button {
    background: linear-gradient(to right, var(--color-blue), #0c85d0);
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
    display: inline-block;
}

.cto-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.5);
    color: var(--color-white);
}

/* ===== COMMUNITY SECTION ===== */
.community {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-light-gray);
    overflow: hidden;
}

.community-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bird-1, .bird-2, .bird-3 {
    position: absolute;
    background-image: url('../images/itcoin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.bird-1 {
    width: 70px;
    height: 70px;
    top: 20%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

.bird-2 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 15%;
    animation: float 12s ease-in-out infinite;
}

.bird-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 30%;
    animation: float 9s ease-in-out infinite;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.community-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.forum-icon::before {
    content: '𝕏';
    font-size: 2.5rem;
}

.member-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.itcoin-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transform: scale(2.0); /* Make the icon twice as large */
}

.phantom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.phantom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
}

.community-card p {
    margin-bottom: 1.5rem;
    color: var(--color-dark-gray);
}

.card-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: bold;
    transition: background-color var(--transition-fast);
}

.card-link:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.phantom-button {
    background: linear-gradient(to right, #9c6bff, #6b4cd3);
    color: var(--color-white);
    padding: 0.7rem 1.8rem;
    font-weight: bold;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(156, 107, 255, 0.3);
}

.phantom-button:hover {
    background: linear-gradient(to right, #6b4cd3, #9c6bff);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(156, 107, 255, 0.5);
}

.member-feed {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--color-light-gray);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.feed-post {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-light-gray);
    text-align: left;
}

.feed-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-light-gray);
    margin-right: 1rem;
    flex-shrink: 0;
}

.post-content {
    flex: 1;
}

.post-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-blue);
}

.post-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.rules-list {
    width: 100%;
    text-align: left;
}

.rules-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rule-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.heart-icon::before {
    content: '❤️';
    font-size: 1.2rem;
}

.bullseye-icon::before {
    content: '🎯';
    font-size: 1.2rem;
}

.love-icon::before {
    content: '🤝';
    font-size: 1.2rem;
}

/* ===== CRYPTO ESSENTIALS SECTION ===== */
.crypto-essentials {
    position: relative;
    padding: 5rem 0 3rem 0;
    overflow: hidden;
}

.crypto-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.rising-coin-1, .rising-coin-2, .rising-coin-3 {
    position: absolute;
    background-image: url('../images/itcoin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.rising-coin-1 {
    width: 70px;
    height: 70px;
    bottom: -10%;
    left: 20%;
    animation: rise 15s linear infinite;
    transform: rotate(15deg);
}

.rising-coin-2 {
    width: 100px;
    height: 100px;
    bottom: -10%;
    left: 50%;
    animation: rise 20s linear infinite;
}

.rising-coin-3 {
    width: 60px;
    height: 60px;
    bottom: -10%;
    right: 20%;
    animation: rise 18s linear infinite;
    transform: rotate(-20deg);
}

.crypto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.crypto-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.crypto-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.crypto-card p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pump-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, var(--color-orange), var(--color-gold));
    color: var(--color-white);
    text-align: center;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.pump-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.5);
    color: var(--color-white);
}

.chart-container {
    width: 100%;
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.dexscreener-chart {
    width: 100%;
    height: 100%;
    border: none;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chart-line {
    position: absolute;
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, var(--color-orange), var(--color-gold));
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    width: 80%;
    height: 60%;
    position: absolute;
    bottom: 20%;
    left: 10%;
}

.bar {
    width: 15%;
    background-color: var(--color-orange);
    border-radius: 5px 5px 0 0;
    opacity: 0.7;
}

.bar:nth-child(1) {
    height: 30%;
}

.bar:nth-child(2) {
    height: 50%;
}

.bar:nth-child(3) {
    height: 80%;
}

.bar:nth-child(4) {
    height: 60%;
}

.bar:nth-child(5) {
    height: 90%;
}

.chart-placeholder p {
    position: absolute;
    bottom: 5%;
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
}

.calculator {
    margin-top: 1.5rem;
}

.calc-input-group {
    margin-bottom: 1rem;
}

.calc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.calc-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

/* Live price indicator and animation */
.live-indicator {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #28a745;
    margin-top: 0.5rem;
}

.live-indicator.updating {
    color: var(--color-orange);
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

.live-dot.updating {
    background-color: var(--color-orange);
    animation: pulse-fast 0.8s infinite;
}

.loading {
    background-color: rgba(245, 166, 35, 0.1);
    border-color: var(--color-orange);
}

.price-updated {
    animation: highlight-price 1s ease;
}

.realtime-update {
    animation: realtime-highlight 0.5s ease;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes pulse-fast {
    0% {
        opacity: 0.7;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
    100% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

@keyframes highlight-price {
    0% {
        background-color: rgba(245, 166, 35, 0.1);
        border-color: var(--color-orange);
    }
    50% {
        background-color: rgba(245, 166, 35, 0.3);
        border-color: var(--color-gold);
    }
    100% {
        background-color: transparent;
        border-color: var(--color-light-gray);
    }
}

@keyframes realtime-highlight {
    0% {
        background-color: rgba(245, 166, 35, 0.2);
        border-color: var(--color-orange);
        box-shadow: 0 0 8px rgba(245, 166, 35, 0.5);
    }
    100% {
        background-color: transparent;
        border-color: var(--color-light-gray);
        box-shadow: none;
    }
}

/* Enhanced calculator result animation */
.calc-result.updating {
    animation: result-update 0.5s ease;
}

@keyframes result-update {
    0% {
        background-color: rgba(245, 166, 35, 0.1);
    }
    50% {
        background-color: rgba(245, 166, 35, 0.3);
    }
    100% {
        background-color: var(--color-light-gray);
    }
}

.calc-result {
    background-color: var(--color-light-gray);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.calc-result p {
    margin: 0;
    font-weight: bold;
}

#tokens-needed {
    color: var(--color-orange);
    font-size: 1.2rem;
}

.hurricane-image-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.hurricane-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast);
}

.hurricane-image:hover {
    transform: scale(1.02);
}

.calc-button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-orange);
    color: var(--color-white);
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background-color var(--transition-fast);
}

.calc-button:hover {
    background-color: var(--color-gold);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--color-blue);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: background-color var(--transition-fast);
}

.social-link:hover .social-icon {
    background-color: var(--color-orange);
}

.x-icon::before {
    content: '𝕏';
    font-size: 1.5rem;
    color: var(--color-white);
}

.telegram-icon::before {
    content: '✈️';
    font-size: 1.2rem;
}

.contract-label {
    text-align: center;
    color: var(--color-dark-gray);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contract-address {
    text-align: center;
    margin: 0 0 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    overflow: hidden; /* Prevent text overflow */
}

.contract-address:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.contract-address:hover::after {
    content: "Click to copy";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--color-white);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    opacity: 0.9;
}

.contract-address p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.contract-address p::before {
    content: "";
    margin-right: 0.5rem;
    color: var(--color-orange);
    font-weight: bold;
}

.address-text {
    background: linear-gradient(to right, var(--color-orange), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 3px rgba(245, 166, 35, 0.5);
    padding: 0.3rem 0;
    border-radius: 0.25rem;
    letter-spacing: 1px;
    user-select: all;
    font-size: 1.1rem;
    font-family: monospace;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(245, 166, 35, 0.5),
                     0 0 10px rgba(245, 166, 35, 0.3),
                     0 0 15px rgba(245, 166, 35, 0.2);
    }
    to {
        text-shadow: 0 0 10px rgba(245, 166, 35, 0.7),
                     0 0 20px rgba(245, 166, 35, 0.5),
                     0 0 30px rgba(245, 166, 35, 0.3);
    }
}

.footer-copyright {
    text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-1000px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-orange) }
}

/* ===== MEME CHAT STYLES ===== */
.meme-chat-container {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-chat-bg);
    height: 350px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    position: relative;
    animation: message-appear 0.3s ease;
}

.user-message {
    align-self: flex-end;
    background-color: var(--color-user-message);
    border-bottom-right-radius: 0.2rem;
}

.bot-message {
    align-self: flex-start;
    background-color: var(--color-bot-message);
    border-bottom-left-radius: 0.2rem;
}

.message-content {
    word-break: break-word;
}

.message-content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-controls {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-light-gray);
}

.template-selector {
    margin-bottom: 1rem;
}

.meme-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: var(--color-white);
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--color-orange);
    outline: none;
}

.chat-send {
    background: linear-gradient(to right, var(--color-orange), var(--color-gold));
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 5px rgba(245, 166, 35, 0.3);
}

.chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.5);
}

.meme-status {
    padding: 0 1rem;
}

.meme-loading, .meme-error {
    display: none;
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.meme-loading {
    background-color: rgba(245, 166, 35, 0.1);
}

.meme-error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #d9534f;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(245, 166, 35, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-orange);
    animation: spin 1s linear infinite;
    margin: 0 auto 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEDIA QUERIES ===== */
/* Small Mobile (320px to 480px) */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    /* Meme Chat Responsive Styles */
    .meme-chat-container {
        height: 450px;
    }
    
    .chat-messages {
        height: 250px;
    }
    
    .chat-controls {
        padding: 0.8rem;
    }
    
    .chat-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chat-send {
        width: 100%;
    }
    
    .message {
        max-width: 90%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contract-address, .marketing-address {
        max-width: 90%;
        padding: 0.7rem;
    }
    
    .address-text {
        font-size: 0.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .story-icons {
        gap: 1.5rem;
    }
    
    .icon-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .community-card, .crypto-card {
        padding: 1.2rem;
    }
    
    /* Adjust parallax elements for small mobile */
    .parallax-element {
        opacity: 0.4; /* Reduce opacity to prevent content obstruction */
    }
    
    .coin-1, .coin-2, .rocket, .lambo, .wings {
        transform: scale(0.7); /* Make elements smaller */
    }
    
    /* Ensure sections have proper spacing */
    .hero {
        padding-top: var(--header-height);
        padding-bottom: 1rem;
    }

    .story, .community, .crypto-essentials {
        padding: 3rem 1rem;
    }

    /* Adjust chart container height for better mobile viewing */
    .chart-container {
        height: 300px;
    }
    
    /* CTO image adjustments for small mobile */
    .cto-image-container {
        width: 150px;
        height: 150px;
    }
    
    .cto-slogan {
        font-size: 1.5rem;
    }
    
    /* Hurricane image adjustments for small mobile */
    .hurricane-image-container {
        margin-top: 1rem;
    }
    
    .hurricane-image {
        max-width: 90%;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Large Mobile (481px to 767px) */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .contract-address, .marketing-address {
        max-width: 90%;
    }
    
    .address-text {
        font-size: 1rem;
    }
    
    /* Adjust parallax elements for large mobile */
    .parallax-element {
        opacity: 0.5;
    }
    
    .coin-1, .coin-2, .rocket, .lambo, .wings {
        transform: scale(0.8);
    }
}

/* Tablet (768px and up) */
@media screen and (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-icons {
        gap: 4rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-social {
        margin-bottom: 0;
    }
    
    /* Adjust contract and marketing address for better display */
    .contract-address, .marketing-address {
        max-width: 80%;
        padding: 1rem;
    }
    
    .address-text {
        font-size: 1.1rem;
    }
    
    /* Better spacing for sections */
    .hero {
        padding-top: var(--header-height);
        padding-bottom: 2rem;
    }

    .story, .community, .crypto-essentials {
        padding: 4rem 1.5rem;
    }

    /* Restore chart container height for tablet */
    .chart-container {
        height: 350px;
    }
}

/* Desktop (1024px and up) */
@media screen and (min-width: 1024px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        padding: 0;
    }
    
    .nav-item {
        margin: 0 1rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .community-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .story-paragraph {
        font-size: 1.2rem;
    }
    
    /* Adjust contract and marketing address for better display */
    .contract-address, .marketing-address {
        max-width: 60%;
    }
    
    /* Better spacing for sections */
    .hero {
        padding-top: var(--header-height);
        padding-bottom: 3rem;
    }

    .story, .community, .crypto-essentials {
        padding: 5rem 2rem;
    }

    /* Restore chart container height for desktop */
    .chart-container {
        height: 400px;
    }
}

/* Large Desktop (1200px and up) */
@media screen and (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .container {
        width: 80%;
    }
    
    /* Adjust contract and marketing address for better display */
    .contract-address, .marketing-address {
        max-width: 50%;
    }
}
