/* 
 * Democracy Coin Website Styles
 * A premium, clean design for a cryptocurrency website
 */

/* ===== Base Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&family=Fredoka+One&family=Nunito:wght@400;600;700&display=swap');

:root {
    /* Primary Colors - Blue theme for Democracy Coin Logo */
    --primary-color: #2b7de9;
    --primary-light: #5a9cf7;
    --primary-dark: #1a5cb0;
    
    /* Secondary Colors */
    --secondary-color: #ffffff;
    --secondary-light: #f9fafb;
    --secondary-dark: #f3f4f6;
    
    /* Neutral Colors */
    --dark: #000000;
    --dark-gray: #4b5563;
    --light-gray: #9ca3af;
    --light: #e7f0f8;
    --white: #ffffff;
    
    /* Accent Colors */
    --accent-1: #a7d7c5;
    --accent-2: #d4f0e2;
    --accent-3: #eaf7f2;
    
    /* Font Sizes */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    --font-4xl: 3rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Comic Neue", "Nunito", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Fredoka One", cursive;
    font-weight: 400; /* Fredoka One only comes in regular weight */
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
    transform: rotate(-1deg);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    font-size: var(--font-3xl);
    color: var(--dark);
    transform: rotate(-2deg);
    text-shadow: 2px 2px 0 rgba(43, 125, 233, 0.2);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    opacity: 0.8;
}

.coming-soon {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 700;
    margin-bottom: var(--space-md);
    font-family: "Comic Neue", sans-serif;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* ===== Banner Collage ===== */
.banner-collage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    width: 100vw; /* Full viewport width */
    height: auto;
    opacity: 0.85; /* Increased for better visibility */
    left: 50%;
    transform: translateX(-50%);
    z-index: -1; /* Ensure it stays behind content */
    transition: opacity 0.5s ease;
}

.banner-top {
    top: 35%; /* Positioned to be visible behind the hero/about sections */
    transform: translateX(-50%) translateY(-50%);
}

.banner-bottom {
    top: 85%; /* Positioned to be visible behind the tokenomics section */
    transform: translateX(-50%) translateY(-50%);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(255, 255, 255, 0.4) 20%, 
        rgba(255, 255, 255, 0.2) 40%, 
        rgba(255, 255, 255, 0.2) 60%, 
        rgba(255, 255, 255, 0.4) 80%, 
        rgba(255, 255, 255, 0.6) 100%);
    z-index: -1; /* Ensure it stays behind content */
}

/* ===== Header Styles ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
}

.header-logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(43, 125, 233, 0.3));
}

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

.logo h1 {
    font-size: var(--font-xl);
    margin: 0;
    color: var(--primary-color);
    font-weight: 400;
    transform: rotate(-2deg);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: var(--space-lg);
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: var(--white);
    font-size: var(--font-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(43, 125, 233, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
    background-color: rgba(255, 255, 255, 0.5); /* More transparent background */
    background-size: cover;
    background-position: center;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero background is now handled by the banner-collage */

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.coin-logo {
    margin-bottom: var(--space-xl);
}

.logo-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.hero-title {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    letter-spacing: 1.5px;
}

/* Cartoonish hero title styling */
.hero-title-cartoonish {
    font-size: calc(var(--font-4xl) * 1.2);
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    text-transform: uppercase;
    transform: rotate(-2deg);
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.subtitle {
    font-size: var(--font-xl);
    color: var(--dark-gray);
    margin-bottom: var(--space-2xl);
    font-family: "Comic Neue", sans-serif;
    font-weight: 700;
    transform: rotate(-1deg);
    letter-spacing: 0.5px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* Contract Address Button */
.contract-button-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.btn-ca {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    background-color: var(--accent-2);
    color: var(--primary-dark);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-full);
    font-family: "Comic Neue", sans-serif;
    font-weight: 700;
    font-size: var(--font-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 rgba(43, 125, 233, 0.3);
    transform: rotate(-1deg);
    position: relative;
}

.btn-ca:hover {
    background-color: var(--accent-2);
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 7px 0 rgba(43, 125, 233, 0.3);
}

.btn-ca:active {
    transform: translateY(2px) rotate(-1deg);
    box-shadow: 0 2px 0 rgba(43, 125, 233, 0.3);
}

.btn-ca i {
    font-size: var(--font-md);
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: "Comic Neue", sans-serif;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: rotate(-2deg);
    letter-spacing: 0.8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 0 var(--primary-dark);
    position: relative;
    top: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 8px 0 var(--primary-dark);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(2px) rotate(-1deg);
    box-shadow: 0 3px 0 var(--primary-dark);
    top: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 0 rgba(43, 125, 233, 0.3);
    position: relative;
    top: 0;
}

.btn-secondary:hover {
    background-color: rgba(43, 125, 233, 0.1);
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 7px 0 rgba(43, 125, 233, 0.3);
}

.btn-secondary:active {
    transform: translateY(2px) rotate(-1deg);
    box-shadow: 0 2px 0 rgba(43, 125, 233, 0.3);
    top: 2px;
}

.btn-vote {
    background: #dc2626;
    color: var(--white);
    border: none;
    box-shadow: 0 5px 0 #b91c1c;
    position: relative;
    top: 0;
}

.btn-vote:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 8px 0 #b91c1c;
    color: var(--white);
}

.btn-vote:active {
    transform: translateY(2px) rotate(-1deg);
    box-shadow: 0 3px 0 #b91c1c;
    top: 2px;
}


/* ===== About Section ===== */
.about {
    padding: var(--space-3xl) 0;
    background-color: rgba(255, 255, 255, 0.6); /* More transparent background */
    position: relative;
    overflow: hidden;
}


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

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2xl);
}

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

.about-text p {
    margin-bottom: var(--space-lg);
    font-size: var(--font-lg);
    color: var(--dark-gray);
}

.key-fact {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    margin: var(--space-md);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    text-align: center;
}

.big-number {
    display: block;
    font-family: "Fredoka One", cursive;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: var(--space-xs);
    color: var(--white);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.fact-text {
    display: block;
    font-family: "Comic Neue", sans-serif;
    font-size: var(--font-lg);
    font-weight: 700;
    text-transform: uppercase;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: var(--space-xl);
    font-size: var(--font-xl);
    transform: rotate(-1deg);
    display: inline-block;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.about-text strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.highlight {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-md);
    font-weight: 700;
    margin-bottom: var(--space-md);
    transform: rotate(-1deg);
    font-family: "Comic Neue", sans-serif;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

/* Cartoonish highlight style for the community message */
.highlight-cartoonish {
    display: inline-block;
    background: linear-gradient(135deg, #2b7de9, #5a9cf7);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-md);
    font-weight: 700;
    margin-bottom: var(--space-md);
    font-family: "Comic Neue", sans-serif;
    position: relative;
    
    /* Wavy, irregular border with multiple border-radius values */
    border-radius: 30px 15px 40px 10px;
    
    /* Speech bubble effect with multiple shadows */
    box-shadow: 
        0 0 0 6px rgba(255, 255, 255, 0.7),
        0 0 0 12px rgba(43, 125, 233, 0.3),
        5px 5px 15px rgba(0, 0, 0, 0.2);
    
    /* Hand-drawn style border */
    border: 3px dashed rgba(255, 255, 255, 0.7);
    
    /* Subtle animation */
    animation: float-cartoonish 4s ease-in-out infinite, pulse-cartoonish 2s ease-in-out infinite;
    transform-origin: center;
}

/* Speech bubble tail */
.highlight-cartoonish::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #2b7de9, #5a9cf7);
    transform: rotate(45deg);
    border-radius: 0 0 12px 0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

/* Animations for the cartoonish highlight */
@keyframes float-cartoonish {
    0% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
    100% {
        transform: translateY(0) rotate(-1deg);
    }
}

@keyframes pulse-cartoonish {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== Banner Showcase Section ===== */
.banner-showcase {
    padding: var(--space-3xl) 0;
    background-color: var(--secondary-light);
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: var(--font-lg);
    color: var(--dark-gray);
}

.banner-showcase-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.banner-item {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(43, 125, 233, 0.15);
}

.showcase-banner {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border: 1px solid var(--light-gray);
}

.banner-caption {
    font-size: var(--font-md);
    color: var(--dark-gray);
    font-weight: 700;
    margin-top: var(--space-sm);
}

/* ===== Tokenomics Section ===== */
.tokenomics {
    padding: var(--space-3xl) 0;
    background-color: rgba(255, 255, 255, 0.5); /* More transparent background */
    position: relative;
    overflow: hidden;
}

/* Tokenomics background is now handled by the banner-collage */

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

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

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
}

.tokenomics-item {
    background-color: rgba(255, 255, 255, 0.8); /* More transparent background */
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    transform: rotate(-1deg);
    border: 2px dashed var(--primary-light);
    backdrop-filter: blur(5px); /* Add blur effect for better readability */
}

.tokenomics-item:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 10px 25px rgba(43, 125, 233, 0.15);
}

.tokenomics-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.tokenomics-icon i {
    font-size: var(--font-2xl);
    color: var(--white);
}

.tokenomics-item h3 {
    margin-bottom: var(--space-md);
    font-size: var(--font-lg);
}


/* ===== Footer ===== */
footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background-color: var(--dark);
    color: var(--light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo h2 {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.footer-logo p {
    color: var(--light-gray);
}

.footer-links h3, .footer-social h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links ul li a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-social .social-icons {
    display: flex;
    gap: var(--space-md);
}

.footer-social .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--light-gray);
    margin-bottom: var(--space-sm);
}

.contract-address {
    color: var(--primary-light);
    font-family: monospace;
}

/* ===== Animations ===== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: var(--font-2xl);
    color: var(--dark-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.whitepaper-text p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.whitepaper-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
.hero-title {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    letter-spacing: 1.5px;
}
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: var(--font-2xl);
    }
    
    .logo-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .logo-placeholder i {
        font-size: 60px;
    }
    
    .tokenomics-grid, .social-grid {
        grid-template-columns: 1fr;
    }
    
    .key-fact {
        display: block;
        margin: var(--space-lg) auto;
        max-width: 200px;
    }
}
