:root {
    --primary-color: #2D3436;
    --secondary-color: #00B894;
    --accent-color: #6C5CE7;
    --text-color: #2D3436;
    --light-text: #636E72;
    --background: #FFFFFF;
    --card-bg: #F5F6FA;
    --gradient: linear-gradient(135deg, #00B894 0%, #6C5CE7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.connect-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.connect-btn:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    border: none;
}

.secondary-btn {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
}

/* Blockchain Image */
.blockchain-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 184, 148, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
    }
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Market Section */
.market {
    padding: 5rem 5%;
    background: var(--card-bg);
}

.market h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.market-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
}

.coin-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.coin-logo {
    width: 30px;
    height: 30px;
}

.market-card .price {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.change.positive {
    color: #00B894;
    font-weight: 500;
}

.change.negative {
    color: #FF7675;
    font-weight: 500;
}

.market-stats {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
}

.chart-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.chart-link:hover {
    transform: translateX(5px);
}

/* Learn Section */
.learn {
    padding: 5rem 5%;
    background: var(--background);
}

.learn h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.learn-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.learn-card:hover {
    transform: translateY(-5px);
}

.learn-card:hover::before {
    opacity: 1;
}

.learn-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.learn-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.learn-topics span {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.learn-topics span a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.learn-topics span a:hover {
    color: var(--secondary-color);
}

.learn-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.learn-link:hover {
    transform: translateX(5px);
}

/* Connect Section */
.connect {
    padding: 5rem 5%;
    background: #f8f9fa;
    text-align: center;
}

.connect h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.connect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 3rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--secondary-color);
}

.about-us {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-us h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.about-us p {
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
}

.about-us p:last-child {
    margin-bottom: 0;
}

.about-us a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-us a:hover {
    text-decoration: underline;
}

.newsletter {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-info {
    color: var(--light-text);
    font-size: 0.9rem;
    max-width: 80%;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
}

.newsletter-form button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 5% 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0.75rem;
        flex-direction: column;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 0.75rem;
        top: 1rem;
        font-size: 1.5rem;
        color: var(--primary-color);
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        padding: 80px 0.75rem 2rem;
        text-align: center;
    }
    
    .hero-content {
        padding: 1rem 0;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .primary-btn, .secondary-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 45%;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blockchain-image {
        width: 280px;
        height: 280px;
        margin-top: 2rem;
    }
    
    .feature-grid, .market-grid, .learn-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card, .market-card, .learn-card {
        padding: 1.5rem;
    }
    
    .features, .market, .learn, .connect {
        padding: 3rem 0.75rem;
    }
    
    .about-us {
        padding: 1.5rem 1rem;
        margin: 0;
        width: 100%;
    }
    
    .about-us p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .connect-content {
        gap: 2rem;
        padding: 0;
        width: 100%;
    }
    
    .newsletter {
        width: 100%;
        padding: 0;
    }
    
    .newsletter-form input {
        padding: 0.8rem;
    }
    
    .newsletter-form button {
        padding: 0.8rem 1.5rem;
        width: 100%;
    }
    
    .newsletter-info {
        max-width: 95%;
    }
    
    .connect h2, .features h2, .market h2, .learn h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0.5rem;
    }
    
    .mobile-menu-btn {
        right: 0.5rem;
    }
    
    .hero {
        padding: 80px 0.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .blockchain-image {
        width: 220px;
        height: 220px;
    }
    
    .feature-card i, .learn-card i {
        font-size: 2rem;
    }
    
    .primary-btn, .secondary-btn {
        width: 48%;
        padding: 0.8rem 0.5rem;
    }
    
    .features, .market, .learn, .connect {
        padding: 2.5rem 0.5rem;
    }
    
    .market-card .price {
        font-size: 1.5rem;
    }
    
    .social-links a {
        font-size: 1.5rem;
    }
    
    .connect h2, .features h2, .market h2, .learn h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Chart Modal Styles */
.chart-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease-in-out;
}

.chart-modal-content {
    background-color: #0e1217;
    color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    width: 80%;
    max-width: 1000px;
    position: relative;
    animation: slideDown 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 80vh;
}

.chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.chart-modal-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
}

.chart-modal-close {
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-modal-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

#price-chart {
    min-height: 350px;
    height: 100%;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.chart-price-info {
    background-color: #0e1217;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
}

.chart-price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #ffffff;
    font-size: 0.9rem;
}

.chart-price-range, .chart-price-change {
    background-color: rgba(56, 97, 251, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-price-range span, .chart-price-change span {
    font-weight: 500;
}

.min-price, .max-price {
    font-weight: 600;
}

.chart-price-change.positive {
    color: #00b894;
    background-color: rgba(0, 184, 148, 0.1);
}

.chart-price-change.negative {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.chart-error {
    text-align: center;
    padding: 30px;
    background-color: #0e1217;
    color: #ffffff;
    border-radius: 8px;
}

.chart-error p {
    margin: 10px 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .chart-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    #price-chart {
        min-height: 250px;
    }
    
    .chart-modal-title {
        font-size: 1.2rem;
    }
    
    .chart-price-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu-btn:focus {
    outline: none;
}

/* Show mobile nav when active */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    gap: 1rem;
    animation: slideDown 0.3s ease-out forwards;
    z-index: 1000;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 