* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #ff960b;
    --secondary: #1a1a2e;
    --accent: #16213e;
    --light: #fff;
    --text: #e0e0e0;
    --success: #00d4aa;
    --danger: #ff6b6b;
}

html, body {
    width: 100%;
    height: 100%;
}

.container {
    width: 100%;
    min-height: 100vh;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light);
    position: relative;
    overflow-x: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.7) 0%, rgba(22, 33, 62, 0.6) 50%, rgba(15, 52, 96, 0.7) 100%);
    pointer-events: none;
}

/* Navigation */
nav {
    width: 100%;
    padding: 20px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #ff7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    flex: 1;
    margin-left: 50px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 7% 60px;
    gap: 60px;
    position: relative;
    z-index: 100;
}

.content {
    flex: 1;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #ff7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 35px;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff7e14);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 150, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 150, 11, 0.5);
}

.btn-secondary {
    border: 2px solid var(--light);
    color: var(--light);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Coin Showcase */
.coin-showcase {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeInRight 0.8s ease 0.4s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.coin-card {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.coin-card:hover {
    background: rgba(255, 150, 11, 0.1);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(255, 150, 11, 0.2);
}

.coin-card img {
    width: 50px;
    height: 50px;
    margin-right: 18px;
    filter: drop-shadow(0 0 8px rgba(255, 150, 11, 0.3));
}

.coin-info {
    flex: 1;
}

.coin-info h3 {
    color: var(--light);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
}

.change {
    font-size: 13px;
    font-weight: 600;
}

.change.positive {
    color: var(--success);
}

.change.negative {
    color: var(--danger);
}

/* About Section */
.about-section {
    position: relative;
    z-index: 100;
    padding: 80px 7%;
    background: rgba(0, 0, 0, 0.3);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary), #ff7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    background: rgba(255, 150, 11, 0.08);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--light);
}

.about-card p {
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
}

.features-section {
    background: rgba(255, 150, 11, 0.05);
    border: 1px solid rgba(255, 150, 11, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.features-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary);
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.features-list li {
    color: var(--text);
    font-size: 15px;
    padding: 10px 0;
}

/* Enhanced Footer */
/* Removed */

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 50px 5% 40px;
        gap: 40px;
    }

    .hero-title {
        font-size: 38px;
    }

    .nav-menu {
        gap: 20px;
        margin-left: 20px;
        font-size: 12px;
    }

    .coin-showcase {
        width: 100%;
    }

    nav {
        padding: 15px 5%;
        flex-wrap: wrap;
    }

    .nav-left {
        flex: 1;
    }
}


/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text);
    font-size: 14px;
}

/* Prices Section */
.prices-section {
    position: relative;
    z-index: 100;
    padding: 80px 7%;
    background: rgba(0, 0, 0, 0.2);
}

.prices-section h2 {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary), #ff7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Prices Grid */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.price-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease backwards;
}

.price-card:nth-child(1) { animation-delay: 0.1s; }
.price-card:nth-child(2) { animation-delay: 0.2s; }
.price-card:nth-child(3) { animation-delay: 0.3s; }
.price-card:nth-child(4) { animation-delay: 0.4s; }
.price-card:nth-child(5) { animation-delay: 0.5s; }
.price-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-card:hover {
    background: rgba(255, 150, 11, 0.08);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 150, 11, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.card-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.card-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 4px;
}

.symbol {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
}

.card-body {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.large-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.card-body .change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.arrow {
    font-size: 10px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat .label {
    font-size: 12px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--light);
}

/* Error Message */
.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    color: #ff9999;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}

/* Footer */
.footer {
    position: relative;
    z-index: 100;
    padding: 30px 7%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    font-size: 13px;
    color: var(--text);
}

.footer p {
    margin-bottom: 8px;
}

.footer-note {
    font-size: 12px !important;
    color: rgba(224, 224, 224, 0.6);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .prices-section {
        padding: 60px 5%;
    }

    .prices-section h2 {
        font-size: 32px;
        margin-bottom: 35px;
    }

    .prices-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .card-footer {
        flex-direction: column;
    }

    .hero-section {
        gap: 30px;
    }

    .about-section {
        padding: 60px 5%;
    }

    .about-section h2 {
        font-size: 32px;
    }

    .about-content {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .prices-section {
        padding: 40px 4%;
    }

    .prices-section h2 {
        font-size: 24px;
    }

    .prices-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        gap: 12px;
    }

    .large-price {
        font-size: 22px;
    }

    .hero-section {
        padding: 40px 4% 30px;
    }

    .about-section {
        padding: 40px 4%;
    }

    .about-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .about-card {
        padding: 25px 15px;
    }

    .features-section {
        padding: 25px;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}