/* Performance optimizations */
:root {
    --neon-red: #ff0000;
    --neon-pink: #ff3333;
    --neon-blue: #ff0000;
    --neon-purple: #ff0000;
    --dark-bg: #0e0e0e;
    --darker-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --hover-glow: 0 0 15px var(--neon-red);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Rajdhani', 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* Cyberpunk grid background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(255, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

/* Animated scanline effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        var(--neon-red), 
        transparent);
    box-shadow: 0 0 10px var(--neon-red);
    animation: scanline 8s linear infinite;
    opacity: 0.5;
    z-index: 999;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Header styles */
header {
    background-color: rgba(0, 0, 0, 0.45);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
    border-bottom: 1px solid red;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo:focus {
    outline: 2px solid var(--neon-red);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--neon-red);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
    letter-spacing: 1px;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.logo:hover .logo-text {
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.9), 0 0 25px rgba(255, 0, 0, 0.5);
}

.section-title {
    color: var(--neon-red);
}

/* Footer Styles */
.site-footer {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border-top: 1px solid var(--neon-red);
    padding: 25px 15px 15px;
    margin-top: 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-bottom: 15px;
}

.footer-section h3 {
    color: var(--neon-red);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link, .contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--neon-red);
    border-radius: 15px;
    transition: var(--transition);
    background: rgba(255, 0, 0, 0.1);
    font-size: 0.9rem;
}

.social-link:hover, .contact-link:hover {
    background: var(--neon-red);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--neon-red);
}

.social-link i, .contact-link i {
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    header {
        padding: 8px 10px;
    }

    .header-content {
        padding: 5px;
        gap: 8px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .site-footer {
        padding: 20px 10px 10px;
        margin-top: 20px;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .social-link, .contact-link {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    header {
        padding: 6px 8px;
    }

    .header-content {
        gap: 6px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .site-footer {
        padding: 15px 8px 8px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-section h3 {
        font-size: 0.95rem;
    }

    .footer-section p {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .social-links {
        gap: 6px;
    }

    .social-link, .contact-link {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .social-link i, .contact-link i {
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 10px;
        font-size: 0.8rem;
    }
}

/* Desktop optimizations */
@media (min-width: 992px) {
    .header-content {
        flex-direction: row;
        justify-content: center;
    }

    header {
        position: sticky;
        top: 0;
    }
}

/* Mobile - Make entire header scroll */
@media (max-width: 991px) {
    header {
        position: relative;
        top: auto;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
