/* ============================================
   CYBERPUNK NEWS PAGE REDESIGN
   ============================================ */

/* === BREAKING NEWS TICKER === */
.news-ticker-wrapper {
    position: relative;
    background: linear-gradient(90deg, 
        rgba(185, 103, 255, 0.1) 0%, 
        rgba(1, 205, 254, 0.15) 50%, 
        rgba(255, 113, 206, 0.1) 100%);
    border-top: 1px solid rgba(1, 205, 254, 0.3);
    border-bottom: 1px solid rgba(185, 103, 255, 0.3);
    padding: 0.6rem 0;
    overflow: hidden;
    margin-top: 80px;
}

.news-ticker-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(1, 205, 254, 0.03) 2px,
        rgba(1, 205, 254, 0.03) 4px
    );
    pointer-events: none;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff2e6d, #b967ff);
    padding: 0.6rem 1.5rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 4px 0 20px rgba(255, 46, 109, 0.5);
}

.ticker-label i {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px currentColor; }
    50% { opacity: 0.5; text-shadow: 0 0 20px currentColor; }
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 180px;
}

.ticker-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 3rem;
    color: var(--text-light);
    font-size: 0.85rem;
    gap: 0.5rem;
}

.ticker-item::before {
    content: '◆';
    color: var(--accent-tertiary);
    font-size: 0.6rem;
}

.ticker-item .highlight {
    color: var(--accent);
    font-weight: bold;
}

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

/* === ENHANCED PAGE HEADER === */
.news-page .page-header {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.news-page .page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(185, 103, 255, 0.1) 0%, 
        transparent 50%);
    animation: rotate-bg 20s linear infinite;
}

@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Enhanced Glitch Title */
.glitch-text {
    font-size: 3.5rem;
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    color: #fff;
    text-shadow: 
        0 0 10px var(--accent),
        0 0 20px var(--accent),
        0 0 40px var(--accent),
        0 0 80px var(--accent);
    animation: glitch-anim 3s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--accent-tertiary);
    animation: glitch-effect 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.glitch-text::after {
    color: var(--accent-secondary);
    animation: glitch-effect 0.3s infinite reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.8; transform: skewX(-1deg); }
    94% { opacity: 1; transform: skewX(1deg); }
}

.subtitle {
    color: var(--accent-tertiary);
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 1rem;
    font-family: monospace;
}

.subtitle::before {
    content: '> ';
    color: var(--accent);
}

.subtitle::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* === CATEGORY FILTERS === */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-btn {
    background: rgba(21, 8, 41, 0.8);
    border: 1px solid rgba(185, 103, 255, 0.3);
    color: var(--text-light);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.5);
    transform: translateY(-2px);
}

/* === HOLOGRAPHIC NEWS CARDS === */
.news-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(21, 8, 41, 0.9) 0%, 
        rgba(45, 25, 73, 0.8) 100%);
    border: 1px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, 
        var(--accent) 0%, 
        var(--accent-tertiary) 50%, 
        var(--accent-secondary) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

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

/* Holographic shine effect */
.news-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.news-card:hover::after {
    transform: translateX(100%) rotate(45deg);
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(185, 103, 255, 0.2),
        inset 0 0 60px rgba(1, 205, 254, 0.05);
}

/* === SCANLINE OVERLAY ON IMAGES === */
.card-image {
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

.image-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(21, 8, 41, 0.3) 50%,
        rgba(21, 8, 41, 0.95) 100%
    );
}

/* === ENHANCED META STYLING === */
.card-content .meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta .date {
    background: rgba(1, 205, 254, 0.1);
    border: 1px solid rgba(1, 205, 254, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--accent-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta .date::before {
    content: '[';
    color: var(--accent);
}

.meta .date::after {
    content: ']';
    color: var(--accent);
}

.meta .category {
    background: linear-gradient(135deg, rgba(185, 103, 255, 0.2), rgba(255, 113, 206, 0.2));
    border: 1px solid rgba(185, 103, 255, 0.4);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === NEWS CARD TITLE ENHANCEMENTS === */
.news-card h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.news-card:hover h2 {
    color: var(--accent-tertiary);
    text-shadow: 0 0 10px rgba(1, 205, 254, 0.5);
}

/* === CYBER LINK BUTTON ENHANCEMENT === */
.cyber-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(185, 103, 255, 0.2), rgba(1, 205, 254, 0.2));
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(185, 103, 255, 0.4), 
        transparent);
    transition: left 0.4s ease;
}

.cyber-link:hover::before {
    left: 100%;
}

.cyber-link:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.5);
    transform: translateX(5px);
}

.cyber-link i {
    transition: transform 0.3s ease;
}

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

.cyber-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* === FEATURED CARD SPECIAL STYLING === */
.news-card.featured {
    background: linear-gradient(135deg, 
        rgba(21, 8, 41, 0.95) 0%, 
        rgba(45, 25, 73, 0.9) 100%);
}

.news-card.featured::before {
    background: linear-gradient(135deg, 
        #ff2e6d 0%, 
        var(--accent) 25%, 
        var(--accent-tertiary) 50%, 
        var(--accent-secondary) 75%,
        #ff2e6d 100%);
    background-size: 300% 300%;
    animation: gradient-border 4s ease infinite;
    opacity: 0.8;
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.news-card.featured h2 {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-card.featured .card-content {
    display: flex;
    flex-direction: column;
}

.news-card.featured .cyber-link {
    margin-top: 1.5rem;
}

/* === LIKE BUTTON ENHANCEMENT === */
.like-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(21, 8, 41, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.like-button i {
    color: #ffd700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.like-button .like-count {
    font-size: 0.65rem;
    color: #ffd700;
    font-family: 'Press Start 2P', monospace;
}

.like-button:hover {
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.like-button:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 10px #ffd700;
}

.like-button.liked {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    animation: star-pulse 0.5s ease;
}

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

/* === NEWS TAG ENHANCEMENT === */
.news-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    top: auto !important;
    right: auto;
    background: linear-gradient(135deg, #ff2e6d, var(--accent));
    color: #fff;
    padding: 0.35rem 0.7rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 15;
    animation: tag-glow 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 46, 109, 0.5);
}

.news-tag::before {
    content: '★ ';
    animation: star-spin 3s linear infinite;
    display: inline-block;
}

@keyframes star-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes tag-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 46, 109, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 46, 109, 0.7); }
}

/* Featured card tag - moved to bottom left corner */
.news-card.featured .news-tag {
    bottom: 1.5rem;
    left: 1.5rem;
    top: auto !important;
    right: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.45rem;
}

/* Featured card like button - stays top right */
.news-card.featured .like-button {
    top: 1.5rem;
    right: 1.5rem;
}

/* === STATS DASHBOARD === */
.news-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(21, 8, 41, 0.8);
    border: 1px solid rgba(185, 103, 255, 0.3);
    border-radius: 12px;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-tertiary), var(--accent-secondary));
}

.stat-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.8rem;
    color: var(--accent-tertiary);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(1, 205, 254, 0.5);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === ENHANCED PAGINATION === */
.pagination-container {
    margin-top: 4rem;
    padding: 2rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(21, 8, 41, 0.9);
    border: 1px solid rgba(185, 103, 255, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.5);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 8, 41, 0.8);
    border: 1px solid rgba(185, 103, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover,
.page-number.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(185, 103, 255, 0.5);
}

.pagination-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination-info span {
    font-family: monospace;
    color: var(--accent-tertiary);
    font-size: 0.85rem;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.items-per-page label {
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0.8;
}

.items-per-page select {
    background: rgba(21, 8, 41, 0.9);
    border: 1px solid rgba(185, 103, 255, 0.3);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.items-per-page select:hover,
.items-per-page select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px rgba(185, 103, 255, 0.3);
}

/* === CORNER DECORATIONS === */
.corner-decoration {
    position: fixed;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 100;
}

.corner-decoration.top-left {
    top: 80px;
    left: 0;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.corner-decoration.top-right {
    top: 80px;
    right: 0;
    border-top: 2px solid var(--accent-tertiary);
    border-right: 2px solid var(--accent-tertiary);
}

.corner-decoration.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--accent-secondary);
    border-left: 2px solid var(--accent-secondary);
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

/* === ANIMATED GRID BACKGROUND === */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(185, 103, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 103, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1200px) {
    .news-card.featured {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured .card-image {
        min-height: 300px;
        clip-path: none;
    }
}

@media (max-width: 768px) {
    .glitch-text {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .news-ticker-wrapper {
        margin-top: 70px;
    }
    
    .ticker-label {
        font-size: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .ticker-content {
        padding-left: 120px;
    }
    
    .category-filters {
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.5rem;
    }
    
    .news-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .corner-decoration {
        display: none;
    }
    
    .regular-news {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-controls {
        gap: 0.5rem;
    }
}

/* === LOADING ANIMATION FOR CARDS === */
.news-card.loading {
    position: relative;
}

.news-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(185, 103, 255, 0.2),
        transparent
    );
    animation: loading-shine 1.5s infinite;
}

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

/* === HEX PATTERN OVERLAY === */
.hex-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23b967ff' fill-opacity='0.02'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   ELEGANT CYBERPUNK FOOTER
   Clean, modern design matching the website theme
   ============================================ */

.footer {
    background: linear-gradient(180deg, 
        rgba(21, 8, 41, 0.95) 0%, 
        rgba(15, 5, 25, 1) 100%);
    padding: 3.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(185, 103, 255, 0.2);
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
}

/* Footer Logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-logo i {
    font-size: 1.8rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(185, 103, 255, 0.4));
}

.footer-logo span {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 1px;
}

/* Description */
.footer-description {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    line-height: 1.7;
    max-width: 320px;
}

/* Section Headings */
.footer-heading {
    font-size: 0.85rem;
    color: var(--accent-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    position: relative;
}

/* Quick Links */
.footer .social-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer .social-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.footer .social-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer .social-links a i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
    opacity: 0.8;
}

.footer .social-links a:hover i {
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Footer Column */
.footer-column {
    position: relative;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer .social-links {
        align-items: center;
    }
    
    .footer .social-links a {
        justify-content: center;
    }
    
    .footer .social-links a:hover {
        transform: none;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   Floating button that appears when scrolling
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(185, 103, 255, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(185, 103, 255, 0.6);
}

.back-to-top i {
    color: #fff;
    font-size: 1.2rem;
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   Progress bar at the top of the page
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-tertiary), var(--accent-secondary));
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* ============================================
   PAGE LOADING ANIMATION
   Cyberpunk themed loader
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple-dark) 0%, #0f0718 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; text-shadow: 0 0 20px var(--accent); }
    50% { opacity: 0.7; text-shadow: 0 0 40px var(--accent); }
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(185, 103, 255, 0.2);
    border-top-color: var(--accent);
    border-right-color: var(--accent-tertiary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: monospace;
    color: var(--accent-tertiary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.loader-text::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* ============================================
   LAZY LOAD IMAGE EFFECT
   Fade in effect for images
   ============================================ */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img.loaded {
    opacity: 1;
}

/* Placeholder shimmer effect */
.img-placeholder {
    background: linear-gradient(
        90deg,
        rgba(21, 8, 41, 0.8) 0%,
        rgba(45, 25, 73, 0.8) 50%,
        rgba(21, 8, 41, 0.8) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Mobile adjustments for back to top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}

