/* ALIKHAMEME - Enhanced Visual Design by Dan Abramov & Khoi Vinh */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ff4444 0%, #ff6b35 30%, #ff8e53 70%, #ffab76 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Subtle background animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== HEADER COMPONENT ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: url('alikhameme-logo.png') center/cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.logo-image:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.social-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: rotate(5deg) scale(1.1);
}

.buy-btn {
    background: linear-gradient(45deg, #ff1744, #ff5722, #ff9800);
    background-size: 200% 200%;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.6);
    background-position: 100% 0;
}

.buy-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.lang-btn .flag {
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.lang-btn span:last-child {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== PRICE TICKER COMPONENT ===== */
.price-ticker {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    margin: 0 2rem;
    border-radius: 20px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.price-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.price-item:hover {
    transform: translateY(-5px);
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffeb3b;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.price-value:hover {
    color: #fff;
    text-shadow: 0 0 20px #ffeb3b;
}

/* ===== STATS GRID COMPONENT ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff1744, #ff5722, #ff9800, #ffeb3b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffeb3b;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    color: #fff;
    text-shadow: 0 0 20px #ffeb3b;
    transform: scale(1.1);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-logo {
    width: 320px;
    height: 320px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: url('alikhameme-logo.png') center/cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff1744, #ff5722, #ff9800, #ffeb3b);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-logo:hover::before {
    opacity: 0.7;
}

.hero-logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.4);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    background: linear-gradient(45deg, #fff, #ffeb3b, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buy-btn {
    background: linear-gradient(45deg, #ff1744, #ff5722, #ff9800);
    background-size: 200% 200%;
    color: white;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.hero-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.hero-buy-btn:hover::before {
    left: 100%;
}

.hero-buy-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 23, 68, 0.6);
    background-position: 100% 0;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff1744, #ff5722, #ff9800, #ffeb3b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffeb3b;
}

.feature-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===== CALCULATOR SECTION ===== */
.calculator {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.05);
}

.calculator-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.calculator h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.calculator-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.preset-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.preset-btn {
    background: linear-gradient(45deg, #ff5722, #ff9800);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.preset-btn:hover::before {
    left: 100%;
}

.preset-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.4);
}

.input-group {
    margin-bottom: 2rem;
}

.input-group input {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: #ffeb3b;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.results {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffeb3b;
}

.results p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.risk-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 0.95rem;
    color: #fff3cd;
}

/* ===== TOKENOMICS SECTION ===== */
.tokenomics {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tokenomics-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tokenomics h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.tokenomics-section {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tokenomics-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.tokenomics-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #ffeb3b;
    font-weight: 700;
}

.tokenomics-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tokenomics-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tokenomics-label {
    font-weight: 600;
    opacity: 0.9;
    flex: 1;
}

.tokenomics-value {
    font-weight: 700;
    color: #ffeb3b;
    flex: 2;
    text-align: right;
    word-break: break-word;
}

/* ===== HOW TO BUY SECTION ===== */
.how-to-buy {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.05);
}

.how-to-buy-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.how-to-buy h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.how-to-buy-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff1744, #ff5722, #ff9800, #ffeb3b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff1744, #ff5722);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 23, 68, 0.4);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.6);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffeb3b;
}

.step-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===== TIMELINE SECTION ===== */
.timeline {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.timeline-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.timeline h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff1744, #ff5722, #ff9800, #ffeb3b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.timeline-card:hover::before {
    transform: scaleX(1);
}

.timeline-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.timeline-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.timeline-card:hover .timeline-icon {
    transform: scale(1.2) rotate(5deg);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffeb3b;
}

.timeline-amount {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ff5722;
}

.timeline-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===== MEME GALLERY SECTION ===== */
.meme-gallery {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.05);
}

.meme-gallery-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.meme-gallery h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.meme-gallery-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.memes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.meme-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
}

.meme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff1744, #ff5722, #ff9800, #ffeb3b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.meme-card:hover::before {
    transform: scaleX(1);
}

.meme-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.meme-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.meme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.meme-overlay {
    /* Sistema de modal para visualização completa */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.meme-overlay.active {
    display: flex;
    opacity: 1;
}

.meme-image-full {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.meme-overlay.active .meme-image-full {
    transform: scale(1);
}

.meme-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.meme-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.meme-image-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 80%;
}

.meme-image-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #ffeb3b;
}

.meme-image-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.meme-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.meme-link:hover .meme-image {
    transform: scale(1.05);
}

.meme-info {
    padding: 1.5rem;
}

.meme-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffeb3b;
}

.meme-info p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.meme-stats {
    display: flex;
    justify-content: center;
    align-items: center;
}

.meme-author {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
    color: #ff9800;
    font-weight: 500;
}

.meme-submit-info {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.meme-submit-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffeb3b;
    font-weight: 700;
}

.meme-submit-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.social-submit-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-submit-btn {
    background: linear-gradient(45deg, #ff5722, #ff9800);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.social-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.social-submit-btn:hover::before {
    left: 100%;
}

.social-submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6);
}

.social-submit-btn .social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== GAME SECTION - ENHANCED VISUAL INTEGRATION ===== */
.game-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 40, 0.6) 100%);
    backdrop-filter: blur(15px);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.game-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.game-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #ffeb3b, #ff5722);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite;
}

.game-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff1744, #ff5722, #ff9800, #ffeb3b, #4caf50, #2196f3, #9c27b0);
    background-size: 200% 200%;
    animation: rainbowShift 3s linear infinite;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.game-tutorial {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #fff3cd;
    backdrop-filter: blur(10px);
}

.game-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.game-info span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.game-info span:hover {
    color: #fff;
    text-shadow: 0 0 10px #ffeb3b;
    transform: scale(1.05);
}

.game-canvas {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    margin-bottom: 2rem;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.game-canvas:hover {
    border-color: rgba(255, 235, 59, 0.5);
    box-shadow: 
        0 0 40px rgba(255, 235, 59, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.game-btn {
    background: linear-gradient(45deg, #ff5722, #ff9800);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6);
}

.game-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.game-btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE DESIGN - ENHANCED MOBILE ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        position: relative;
    }
    
    .header-right {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        align-items: center;
    }
    
    .language-selector {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .social-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        gap: 0.4rem;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .buy-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .price-ticker {
        flex-direction: column;
        gap: 1rem;
        margin: 1rem;
        padding: 1.2rem;
    }
    
    .price-item {
        width: 100%;
        padding: 0.8rem;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }
    
    .price-label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .price-value {
        font-size: 1.4rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-logo {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .hero-buy-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .about,
    .calculator,
    .tokenomics,
    .how-to-buy,
    .timeline {
        padding: 3rem 1rem;
    }
    
    .about h2,
    .calculator h2,
    .tokenomics h2,
    .how-to-buy h2,
    .timeline h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    .calculator-card {
        padding: 2rem 1.5rem;
    }
    
    .preset-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .preset-btn {
        width: 100%;
        max-width: 200px;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .input-group input {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .results {
        padding: 1.5rem;
    }
    
    .results h3 {
        font-size: 1.3rem;
    }
    
    .results p {
        font-size: 1rem;
    }
    
    .risk-warning {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tokenomics-section {
        padding: 2rem 1.5rem;
    }
    
    .tokenomics-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tokenomics-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
        align-items: flex-start;
    }
    
    .tokenomics-label {
        font-size: 0.95rem;
    }
    
    .tokenomics-value {
        text-align: left;
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 0.95rem;
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-card {
        padding: 2rem 1.5rem;
    }
    
    .timeline-icon {
        font-size: 2.5rem;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-amount {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
    
    .game-container {
        padding: 2rem 1rem;
    }
    
    .game-tutorial {
        padding: 1.2rem;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.2rem;
        text-align: center;
    }
    
    .game-info span {
        font-size: 1rem;
    }
    
    .game-canvas {
        height: 300px;
        margin-bottom: 1.5rem;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .game-btn {
        width: 100%;
        max-width: 200px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .meme-gallery {
        padding: 3rem 1rem;
    }
    
    .meme-gallery h2 {
        font-size: 2.2rem;
    }
    
    .meme-gallery-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .memes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .meme-submit-info {
        padding: 2rem 1.5rem;
    }
    
    .meme-submit-info h3 {
        font-size: 1.5rem;
    }
    
    .meme-submit-info p {
        font-size: 1rem;
    }
    
    .social-submit-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-submit-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .header {
        padding: 0.8rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .social-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
    
    .buy-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .price-ticker {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .price-value {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .stat-card {
        padding: 1.2rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 2rem 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .hero-buy-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .about,
    .calculator,
    .tokenomics,
    .how-to-buy,
    .timeline,
    .meme-gallery {
        padding: 2rem 0.5rem;
    }
    
    .about h2,
    .calculator h2,
    .tokenomics h2,
    .how-to-buy h2,
    .timeline h2,
    .meme-gallery h2 {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
    
    .feature-card,
    .step-card,
    .timeline-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon,
    .timeline-icon {
        font-size: 2rem;
    }
    
    .feature-title,
    .step-title,
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .feature-description,
    .step-description,
    .timeline-description {
        font-size: 0.9rem;
    }
    
    .calculator-card {
        padding: 1.5rem 1rem;
    }
    
    .preset-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .input-group input {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .results {
        padding: 1.2rem;
    }
    
    .results h3 {
        font-size: 1.1rem;
    }
    
    .results p {
        font-size: 0.9rem;
    }
    
    .risk-warning {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .tokenomics-section {
        padding: 1.5rem 1rem;
    }
    
    .tokenomics-section h3 {
        font-size: 1.3rem;
    }
    
    .tokenomics-label,
    .tokenomics-value {
        font-size: 0.85rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .game-container {
        padding: 1.5rem 0.8rem;
    }
    
    .game-tutorial {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .game-info span {
        font-size: 0.9rem;
    }
    
    .game-canvas {
        height: 250px;
    }
    
    .game-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .meme-gallery-subtitle {
        font-size: 0.95rem;
    }
    
    .meme-submit-info {
        padding: 1.5rem 1rem;
    }
    
    .meme-submit-info h3 {
        font-size: 1.3rem;
    }
    
    .meme-submit-info p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1.5rem 0.5rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* ===== MARBLE MERGER GAME STYLES ===== */
.game-area {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.marble-game-canvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-ui {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 200px;
}

.score-display {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid #333;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.score-item:last-child {
    margin-bottom: 0;
}

.score-label {
    font-weight: bold;
    color: #ffd700;
    font-size: 1rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.next-marble {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid #333;
    text-align: center;
}

.next-label {
    display: block;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.next-canvas {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Mobile responsiveness for Marble Merger */
@media (max-width: 768px) {
    .game-area {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .marble-game-canvas {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
    
    .game-ui {
        width: 100%;
        max-width: 350px;
    }
    
    .score-display {
        padding: 1rem;
    }
    
    .score-value {
        font-size: 1.2rem;
    }
    
    .game-controls {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .game-btn {
        flex: 1;
        margin: 0 0.2rem;
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}


/* ===== MEME GALLERY RESPONSIVE ===== */
@media (max-width: 768px) {
    .meme-overlay {
        padding: 1rem;
    }
    
    .meme-image-full {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .memes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .meme-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    /* Touch devices - show overlay on tap */
    .meme-card:active .meme-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .meme-card:active .meme-image-full {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .meme-gallery h2 {
        font-size: 2.2rem;
    }
    
    .meme-gallery-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .meme-image-container {
        height: 200px;
    }
    
    .meme-info {
        padding: 1rem;
    }
    
    .meme-info h3 {
        font-size: 1.1rem;
    }
    
    .meme-info p {
        font-size: 0.9rem;
    }
}



/* ===== MOBILE OPTIMIZATIONS BY DAN ABRAMOV ===== */

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .social-link:hover,
    .buy-btn:hover,
    .feature-card:hover,
    .meme-card:hover {
        transform: none;
    }
    
    /* Add touch feedback */
    .social-link:active,
    .buy-btn:active,
    .feature-card:active,
    .meme-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Enhanced mobile layout */
@media (max-width: 768px) {
    /* Typography scaling */
    html {
        font-size: 14px; /* Reduce base font size for mobile */
    }
    
    /* Header optimizations */
    .header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .header-right {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .social-link {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        min-height: 44px; /* Apple's recommended touch target */
    }
    
    .language-selector {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Button optimizations */
    .buy-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 48px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Price ticker mobile */
    .price-ticker {
        padding: 1rem;
        margin: 1rem;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .price-item {
        padding: 1rem;
        text-align: center;
    }
    
    /* Feature cards mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    /* Calculator mobile */
    .calculator {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
    
    .calculator-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .calc-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .calculator input {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Tokenomics mobile */
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* How to buy mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Timeline mobile */
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Meme gallery mobile */
    .memes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .meme-card {
        max-width: 100%;
    }
    
    .meme-image {
        height: 250px; /* Consistent height for mobile */
    }
    
    .meme-info {
        padding: 1.5rem;
    }
    
    .meme-title {
        font-size: 1.1rem;
    }
    
    .meme-description {
        font-size: 0.9rem;
    }
    
    /* Section spacing mobile */
    .section {
        padding: 3rem 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .header {
        padding: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .calculator-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .meme-image {
        height: 200px;
    }
    
    .section {
        padding: 2rem 0.8rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
}

/* Touch improvements */
@media (pointer: coarse) {
    /* Larger touch targets */
    button, 
    .btn, 
    .social-link, 
    .calc-btn,
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for touch */
    .calculator-buttons {
        gap: 1rem;
    }
    
    .language-selector {
        gap: 0.8rem;
    }
    
    /* Prevent zoom on input focus */
    input, 
    select, 
    textarea {
        font-size: 16px !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .hero-logo,
    .feature-card,
    .meme-card {
        animation: none;
    }
    
    /* Simplify gradients for better performance */
    body {
        background: linear-gradient(135deg, #ff4444 0%, #ff6b35 50%, #ffab76 100%);
        animation: none;
    }
    
    /* Optimize backdrop filters */
    .header,
    .price-ticker,
    .calculator {
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header,
    .price-ticker,
    .calculator,
    .feature-card,
    .meme-card {
        border: 2px solid white;
    }
    
    .buy-btn,
    .calc-btn,
    .social-link {
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Dark mode support (if system prefers dark) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* Print styles */
@media print {
    .header,
    .buy-btn,
    .calculator,
    .social-link {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}


/* ===== PHANTOM BUTTON SPECIFIC OPTIMIZATIONS ===== */
.tutorial-link {
    background: linear-gradient(45deg, #8B5CF6, #A855F7, #C084FC);
    background-size: 200% 200%;
    animation: phantomGlow 3s ease-in-out infinite alternate;
}

@keyframes phantomGlow {
    0% { 
        background-position: 0% 50%;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    }
    100% { 
        background-position: 100% 50%;
        box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    }
}

.tutorial-link:hover {
    background: linear-gradient(45deg, #7C3AED, #8B5CF6, #A855F7);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

/* ===== ENHANCED MOBILE OPTIMIZATIONS ===== */
@media (max-width: 480px) {
    /* Ultra-small screens (older phones) */
    .header {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .header-right {
        flex-wrap: wrap;
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .social-link {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
        min-height: 48px;
    }
    
    .buy-btn {
        padding: 1rem 1.8rem;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
        max-width: 280px;
    }
    
    /* Tutorial page specific optimizations */
    .tutorial-step {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .tutorial-image {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 1rem 0;
    }
    
    .tutorial-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .tutorial-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    /* Improved touch targets for tutorial navigation */
    .tutorial-nav-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 25px;
        margin: 0.5rem;
    }
    
    /* Better spacing for tutorial content */
    .tutorial-content {
        padding: 1rem;
        line-height: 1.7;
    }
    
    .tutorial-warning {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 12px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* ===== LANDSCAPE MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 0.6rem 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .tutorial-step {
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 1rem;
    }
    
    .tutorial-image {
        flex: 0 0 40%;
        max-width: 300px;
    }
    
    .tutorial-content {
        flex: 1;
    }
}

/* ===== TABLET OPTIMIZATIONS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 1rem 2rem;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .social-link {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .tutorial-step {
        max-width: 800px;
        margin: 2rem auto;
        padding: 2rem;
    }
    
    .tutorial-image {
        max-width: 600px;
        margin: 1.5rem auto;
        display: block;
    }
}

/* ===== IMPROVED ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .phantomGlow {
        animation: none;
    }
    
    .tutorial-link {
        background: #8B5CF6;
    }
}

/* ===== FOCUS IMPROVEMENTS FOR KEYBOARD NAVIGATION ===== */
.social-link:focus,
.buy-btn:focus,
.tutorial-nav-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* ===== HIGH DPI DISPLAY OPTIMIZATIONS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image,
    .tutorial-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

