/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* Custom CSS Variables */
:root {
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-accent: #00ccaa;
    --dark-bg: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Navigation Styles - FORCE OVERRIDE */
nav.fixed {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    background-color: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 50 !important;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2) !important;
}

nav.fixed .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

nav.fixed .flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 4rem !important;
}

nav.fixed .justify-between {
    justify-content: space-between !important;
}

nav.fixed .items-center {
    align-items: center !important;
}

nav.fixed .h-16 {
    height: 4rem !important;
}

nav.fixed .space-x-2 > * {
    margin-left: 0.5rem !important;
}

nav.fixed .space-x-8 > * {
    margin-left: 2rem !important;
}

nav.fixed .text-gray-300 {
    color: #d1d5db !important;
}

nav.fixed .hover\:text-neon-cyan:hover {
    color: var(--neon-cyan) !important;
}

nav.fixed .text-neon-cyan {
    color: var(--neon-cyan) !important;
}

nav.fixed .text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

nav.fixed .font-bold {
    font-weight: 700 !important;
}

nav.fixed .w-6 {
    width: 1.5rem !important;
}

nav.fixed .h-6 {
    height: 1.5rem !important;
}

nav.fixed .w-8 {
    width: 2rem !important;
}

nav.fixed .h-8 {
    height: 2rem !important;
}

nav.fixed .object-contain {
    object-fit: contain !important;
}

nav.fixed .overflow-hidden {
    overflow: hidden !important;
}

nav.fixed .hidden {
    display: none !important;
}

nav.fixed .md\:flex {
    display: none !important;
}

@media (min-width: 768px) {
    nav.fixed .md\:flex {
        display: flex !important;
    }
}

nav.fixed .md\:hidden {
    display: block !important;
}

@media (min-width: 768px) {
    nav.fixed .md\:hidden {
        display: none !important;
    }
}

.nav-link {
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #d1d5db !important;
}

.nav-link:hover {
    color: var(--neon-cyan) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom Animations */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 15px var(--neon-cyan);
    }
    50% {
        box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    }
    100% {
        box-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 15px var(--neon-cyan);
    }
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--neon-cyan), -0.05em -0.025em 0 var(--neon-magenta);
    }
    15% {
        text-shadow: 0.05em 0 0 var(--neon-cyan), -0.05em -0.025em 0 var(--neon-magenta);
    }
    16% {
        text-shadow: -0.05em -0.025em 0 var(--neon-cyan), 0.025em 0.025em 0 var(--neon-magenta);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--neon-cyan), 0.025em 0.025em 0 var(--neon-magenta);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--neon-cyan), 0.05em 0 0 var(--neon-magenta);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--neon-cyan), 0.05em 0 0 var(--neon-magenta);
    }
    100% {
        text-shadow: -0.025em 0 0 var(--neon-cyan), -0.025em -0.025em 0 var(--neon-magenta);
    }
}

/* Background Effects */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scan 8s linear infinite;
    pointer-events: none;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 200px 200px, 200px 200px, 200px 200px, 200px 200px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    opacity: 0.1;
}

/* Circuit Board Effect */
.circuit-paths {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
    pointer-events: none;
}

.circuit-board {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
}

.circuit-path {
    position: absolute;
    background: rgba(0, 255, 255, 0.3);
    height: 2px;
    transform-origin: left center;
}

.circuit-path-horizontal {
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
}

.circuit-path-vertical {
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.8), transparent);
    width: 2px !important;
    height: auto !important;
}

.circuit-chip {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circuit-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    background: rgba(0, 255, 255, 0.6);
    border-radius: 1px;
}

.signal-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 255, 1);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    pointer-events: none;
}

@keyframes signal-flow {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* About Section Neon Signs */
.about-block {
    transition: all 0.5s ease-in-out;
}

.about-block.active {
    animation: block-pulse 3s ease-in-out !important;
}

.about-block[data-theme="it"].active {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3) !important;
}

.about-block[data-theme="3d"].active {
    border-color: var(--neon-magenta) !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3) !important;
}

.about-block[data-theme="linux"].active {
    border-color: var(--neon-accent) !important;
    box-shadow: 0 0 20px rgba(0, 204, 170, 0.3) !important;
}

.neon-signs-container {
    position: relative;
    height: 300px;
}

.neon-sign-wrapper {
    position: relative;
    width: 300px;
    height: 200px;
}

.neon-sign {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-in-out;
}

.neon-sign.active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.neon-sign.morphing-out {
    opacity: 0;
    transform: scale(1.2) rotate(5deg);
}

.neon-text {
    filter: drop-shadow(0 0 3px currentColor) 
            drop-shadow(0 0 6px currentColor) 
            drop-shadow(0 0 9px currentColor);
    animation: neon-flicker 2s infinite alternate;
}

.neon-path {
    filter: drop-shadow(0 0 2px currentColor) 
            drop-shadow(0 0 4px currentColor) 
            drop-shadow(0 0 6px currentColor);
    animation: neon-flicker 2s infinite alternate;
}

.neon-fill {
    filter: drop-shadow(0 0 2px currentColor) 
            drop-shadow(0 0 4px currentColor) 
            drop-shadow(0 0 6px currentColor);
    animation: neon-flicker 2s infinite alternate;
}

@keyframes block-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.2);
    }
}

@keyframes neon-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes sign-morph-in {
    0% {
        opacity: 0;
        transform: scale(0.6) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes sign-morph-out {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(-2deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) rotate(10deg);
    }
}

.neon-sign.morphing-in {
    animation: sign-morph-in 0.8s ease-in-out forwards;
}

.neon-sign.morphing-out {
    animation: sign-morph-out 0.8s ease-in-out forwards;
}

.hidden {
    display: none !important;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .neon-signs-container {
        height: 200px;
        margin-top: 2rem;
    }
    
    .neon-sign-wrapper {
        width: 250px;
        height: 150px;
    }
    
    .neon-sign {
        transform: scale(0.7);
    }
    
    .neon-sign.active {
        transform: scale(0.7);
    }
}

/* Neon Text Effects */
.text-neon-glow {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor,
        0 0 40px currentColor;
}

.text-glitch {
    animation: glitch 2s infinite;
}

/* Button Styles */
.neon-button {
    position: relative;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transition: left 0.5s ease;
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button:hover {
    box-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Card Styles */
.cyber-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    animation: scan 6s linear infinite;
}

.cyber-card:hover {
    border-color: rgba(0, 255, 255, 0.2);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.1),
        inset 0 0 10px rgba(0, 255, 255, 0.02);
    transform: translateY(-2px);
}

/* Form Styles */
.cyber-form input,
.cyber-form textarea,
.cyber-form select {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.cyber-form input:focus,
.cyber-form textarea:focus,
.cyber-form select:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.1);
}

.cyber-form label {
    color: var(--neon-cyan);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-magenta), var(--neon-cyan));
}

/* Mobile Menu Styles */
#mobile-menu {
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cyber-grid {
        background-size: 150px 150px, 150px 150px, 150px 150px, 150px 150px;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-cyan);
    animation: spin 1s ease-in-out infinite;
}

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

/* Success/Error Messages */
.success-message {
    background: rgba(0, 204, 170, 0.1);
    border: 1px solid rgba(0, 204, 170, 0.3);
    color: var(--neon-accent);
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

.error-message {
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.3);
    color: var(--neon-magenta);
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

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

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neon Text Border */
.animatech-text {
    position: relative;
    display: inline-block;
    text-shadow: 
        -1px -1px 0 rgba(0, 255, 255, 0.3),
        1px -1px 0 rgba(0, 255, 255, 0.3),
        -1px 1px 0 rgba(255, 0, 255, 0.3),
        1px 1px 0 rgba(255, 0, 255, 0.3);
}

/* Pulse Animation */
.pulse-neon {
    animation: pulse-neon 2s ease-in-out infinite;
}

@keyframes pulse-neon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}
