/* Logo Animation Styles */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500;600&display=swap');

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.logo-main {
    font-family: 'Fira Code', 'Source Code Pro', monospace;
    position: relative;
    margin-bottom: 8px;
}

/* Typing cursor effect */
.logo-main::after {
    content: '|';
    animation: blink 1s infinite;
    color: #00ff00;
    font-weight: 300;
    margin-left: 5px;
    position: absolute;
}

/* Logo text with glitch effect */
.logo-primary, .logo-secondary {
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-primary {
    font-size: 2.2rem;
    color: #00ff00; /* Bright green */
    text-shadow: 
        0 0 10px rgba(0, 255, 0, 0.5),
        0 0 20px rgba(0, 255, 0, 0.3);
}

.logo-secondary {
    font-size: 2rem;
    color: #32cd32; /* Lime green */
    margin-left: 8px;
    text-shadow: 
        0 0 8px rgba(50, 205, 50, 0.4),
        0 0 15px rgba(50, 205, 50, 0.2);
}

/* Tagline with typing animation */
.tagline {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    color: #90ee90; /* Light green */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-left: 20px;
    overflow: hidden;
    white-space: nowrap;
}

.tagline::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff00;
    animation: pulse 2s infinite;
}

/* Typing animation for tagline */
.tagline.typing {
    width: 0;
    animation: typing 3s steps(30, end) forwards,
               blink-caret 0.75s step-end infinite 3s;
    border-right: 2px solid #00ff00;
}

/* Animations */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00ff00; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Matrix-style digital rain effect for logo background */
.logo-digital-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Code brackets decoration */
.logo-brackets {
    position: absolute;
    font-family: 'Fira Code', monospace;
    color: #00ff00;
    opacity: 0.7;
    font-size: 1.5rem;
}

.logo-brackets.left {
    left: -15px;
    top: 10px;
}

.logo-brackets.right {
    right: -15px;
    bottom: 10px;
}

/* Hover effects */
.logo-container:hover .logo-primary {
    animation: glitch 0.3s linear;
}

.logo-container:hover .logo-secondary {
    animation: glitch 0.3s linear 0.1s;
}

.logo-container:hover .tagline {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .logo-primary {
        font-size: 1.8rem;
    }
    
    .logo-secondary {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}