/* ======= Index Page Specific Styles ======= */

/* Hero Section */
header {
    padding: 80px 0;
    text-align: center;
}

h1 {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Coin Card */
.coin-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-top: 50px;
}

.coin-logo {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
    position: relative;
    box-shadow: 0 10px 25px rgba(247, 71, 105, 0.4);
}

.coin-logo::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

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

.coin-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light);
}

.price-change {
    color: #2ecc71;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 30px;
    display: inline-block;
    background: rgba(46, 204, 113, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.coin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

/* Price Chart */
.chart-wrapper {
    width: 100%;
    height: 200px;
    margin: 30px 0;
    position: relative;
}

.price-chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.chart-line {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 2;
}

.chart-area {
    fill: url(#areaGradient);
    opacity: 0.3;
}

.chart-dot {
    fill: var(--primary);
    stroke: white;
    stroke-width: 2;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.chart-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Time Filters */
.time-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.time-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-button.active {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-color: transparent;
}

/* Live Price Ticker */
.ticker-container {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 0;
    margin: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    margin-right: 50px;
}

.ticker-name {
    font-weight: 600;
    margin-right: 10px;
}

.ticker-price {
    color: var(--light);
}

.ticker-change {
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.ticker-change.positive {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.ticker-change.negative {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Roadmap */
.roadmap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    left: 50%;
    transform: translateX(-50%);
}

.roadmap-item {
    display: flex;
    margin-bottom: 100px;
    position: relative;
}

.roadmap-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
}

.roadmap-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
}

.roadmap-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 25px;
    position: relative;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.roadmap-item::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.roadmap-date {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.roadmap-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--light);
}

.roadmap-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-photo {
    height: 250px;
    width: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--light);
    background: linear-gradient(45deg, var(--dark), #1a1b3a);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-name {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--light);
}

.team-role {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Tokenomics */
.token-economics {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-container {
    width: 300px;
    height: 300px;
    position: relative;
    margin-bottom: 40px;
}

.token-allocation {
    max-width: 600px;
    width: 100%;
}

.allocation-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.allocation-color {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    margin-right: 15px;
}

.allocation-info {
    flex: 1;
}

.allocation-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.allocation-name {
    font-weight: 500;
    color: var(--light);
}

.allocation-percentage {
    font-weight: 600;
    color: var(--primary);
}

.allocation-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.chart-piece {
    transform-origin: center;
    transition: transform 0.3s ease;
}

.chart-piece:hover {
    transform: translateX(20px);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: "+";
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--light);
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-text {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Media Queries for Index Page */
@media (max-width: 992px) {
    h1 {
        font-size: 48px;
    }

    .roadmap::before {
        left: 30px;
    }

    .roadmap-item:nth-child(odd), .roadmap-item:nth-child(even) {
        justify-content: flex-start;
        padding: 0 0 0 60px;
    }

    .roadmap-item::after {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
    }

    .coin-price {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .coin-card {
        padding: 20px;
    }

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