/* =============================================
   Concepto Web - Custom Styles
   Brand Color: #C41E1E (Red)
   ============================================= */

/* === NAVIGATION === */
.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}
.nav-link:hover {
    color: #fff;
}
.nav-link.nav-active {
    color: #C41E1E;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C41E1E;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.nav-active::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #94a3b8;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #C41E1E;
    background: rgba(196, 30, 30, 0.05);
}

/* Header scrolled */
.header-scrolled {
    background: rgba(8, 13, 25, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === HERO GRID === */
.hero-grid {
    background-image:
        linear-gradient(rgba(196, 30, 30, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 30, 30, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* === SCAN LINE === */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 30, 0.6), transparent);
    animation: scanLine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* === TERMINAL LINES === */
.terminal-line {
    opacity: 0;
    animation: terminalType 0.3s ease forwards;
    animation-delay: var(--delay, 0s);
}

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

/* === ANIMATIONS === */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-blink {
    animation: blink 1s step-end infinite;
}

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

/* === REVEAL ON SCROLL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === BLOG CONTENT === */
.blog-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 1rem;
}

.blog-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 0.75rem;
}

.blog-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content a {
    color: #C41E1E;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content a:hover {
    color: #f87171;
}

.blog-content code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #C41E1E;
}

.blog-content pre {
    background: rgba(8, 13, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}

.blog-content blockquote {
    border-left: 3px solid #C41E1E;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-style: italic;
}

/* === LINE CLAMP === */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080d19;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* === SELECT ARROW === */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* === SMOOTH SCROLL === */
html {
    scroll-behavior: smooth;
}

/* === SELECTION COLOR === */
::selection {
    background: rgba(196, 30, 30, 0.3);
    color: #fff;
}
