/* Web3 Page Specific Styles */

/* Web3 Hero Section */
.web3-hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.web3-hero-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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.web3-hero-content {
    position: relative;
    z-index: 2;
}

.web3-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.web3-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.web3-cta-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.web3-cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Web3 Animation */
.web3-animation {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blockchain-nodes {
    position: relative;
    width: 300px;
    height: 300px;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 20%; right: 0; animation-delay: 0.4s; }
.node-3 { bottom: 20%; right: 0; animation-delay: 0.8s; }
.node-4 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1.2s; }
.node-5 { top: 20%; left: 0; animation-delay: 1.6s; }

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

.defi-tokens {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.token {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
}

.token-1 { top: 10%; left: 10%; animation-delay: 0s; }
.token-2 { top: 20%; right: 15%; animation-delay: 0.5s; }
.token-3 { bottom: 30%; left: 20%; animation-delay: 1s; }
.token-4 { bottom: 10%; right: 10%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Web3 Features Section */
.web3-features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.web3-feature-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.web3-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.web3-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.web3-feature-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.web3-feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.web3-feature-card .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.web3-feature-card .btn-link:hover {
    color: var(--primary-dark);
}

/* DeFi Section */
.defi-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.defi-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.defi-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.defi-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.defi-stat {
    text-align: center;
}

.defi-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.defi-stat p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.protocol-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.protocol-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.protocol-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.protocol-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.protocol-card h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.protocol-card p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
}

/* NFT Section */
.nft-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.nft-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.nft-section > .container > .row:first-child p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.nft-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.nft-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
}

.nft-placeholder::before {
    content: '🎨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.nft-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nft-info {
    padding: 1.5rem;
}

.nft-info h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.nft-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.nft-actions {
    display: flex;
    gap: 0.5rem;
}

.nft-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem;
}

/* Networks Section */
.networks-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.networks-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.networks-section > .container > .row:first-child p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.network-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

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

.network-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.network-icon.ethereum { background: #627eea; }
.network-icon.polygon { background: #8247e5; }
.network-icon.bsc { background: #f3ba2f; }
.network-icon.solana { background: #9945ff; }
.network-icon.arbitrum { background: #28a0f0; }
.network-icon.optimism { background: #ff0420; }

.network-card h5 {
    color: var(--text-dark);
    margin: 0;
}

/* Responsive Design for Web3 */
@media (max-width: 991.98px) {
    .web3-hero-title {
        font-size: 2.5rem;
    }
    
    .defi-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .protocol-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .web3-hero-title {
        font-size: 2rem;
    }
    
    .web3-hero-subtitle {
        font-size: 1rem;
    }
    
    .web3-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .web3-cta-buttons .btn {
        width: 100%;
    }
    
    .protocol-cards {
        grid-template-columns: 1fr;
    }
    
    .nft-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .web3-hero-section {
        padding: 100px 0 60px;
    }
    
    .web3-hero-title {
        font-size: 1.8rem;
    }
    
    .defi-section h2,
    .nft-section h2,
    .networks-section h2 {
        font-size: 2rem;
    }
    
    .nft-actions {
        flex-direction: column;
    }
}

/* Additional Web3 Animations */
.web3-feature-card,
.nft-card,
.network-card {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Web3 specific button styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
} 