/* HERO COMPONENT - Reusable Styles */
/* This file contains only the hero-specific styles for reuse in other projects */

/* Hero Container */
.pinche-hero {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px; /* Wider for text to fit */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: visible; /* Allow particles to extend */
}


.pinche-hero-container {
    width: 100%;
    max-width: 900px; /* Wider container */
    margin: 0 auto;
}

.pinche-hero-wrapper {
    background: transparent; /* Remove dark background to allow particles to show */
    border-radius: 24px;
    padding: 0px 10px !important; /* Minimal padding */
    text-align: center;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

/* Logo Styles */
.pinche-hero-logo-container {
    margin-bottom: -180px; /* Moved higher - increased negative margin from -120 to -180 */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pinche-hero-logo {
    width: 910px; /* Increased by 40% from original 650px */
    height: 910px; /* Increased by 40% from original 650px */
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(0, 255, 0, 0.7));
    animation: pinche-logo-float 3s ease-in-out infinite;
}

@keyframes pinche-logo-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Text Container */
.pinche-hero-text-container {
    margin: 0;
    margin-top: -100px; /* Very aggressive negative margin */
    position: relative;
    z-index: 15; /* Above logo */
}

.pinche-hero-content {
    margin: 0;
}

.pinche-hero-title-dex {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Typewriter Effect */
.pinche-typewriter-text {
    font-family: 'Silkscreen', monospace;
    font-size: clamp(1.1rem, 3.2vw, 1.8rem); /* Slightly larger text */
    color: #39ff14;
    line-height: 1.2; /* Tighter line height */
    display: block;
    white-space: normal; /* Allow line breaks */
    text-align: center;
    max-width: 900px; /* Wider container */
    margin: 0 auto;
    text-shadow: 
        0 0 8px #39ff14,
        0 0 16px #39ff14;
}

.pinche-typewriter-cursor {
    display: inline;
    width: 0.8ch;
    height: 1em;
    background-color: #39ff14; /* Solid fill like vintage terminals */
    margin-left: 0;
    animation: pinche-vintage-blink 1s infinite;
    vertical-align: baseline;
    position: relative;
    border: none;
    box-shadow: 
        0 0 6px #39ff14,
        0 0 12px #39ff14,
        0 0 18px rgba(57, 255, 20, 0.6);
}

/* Vintage terminal ghost trail effect */
.pinche-typewriter-cursor::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: radial-gradient(ellipse, rgba(57, 255, 20, 0.4) 0%, rgba(57, 255, 20, 0.2) 40%, transparent 70%);
    z-index: -1;
    animation: pinche-vintage-ghost-trail 1.5s ease-in-out infinite;
}

/* Phosphor persistence effect */
.pinche-typewriter-cursor::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: rgba(57, 255, 20, 0.15);
    animation: pinche-phosphor-persistence 2s ease-in-out infinite;
    z-index: -2;
}

@keyframes pinche-scanline {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(1.1em); opacity: 0; }
}

/* Vintage terminal cursor blink - solid on/off like old CRT monitors */
@keyframes pinche-vintage-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Vintage ghost trail effect - simulates phosphor persistence */
@keyframes pinche-vintage-ghost-trail {
    0% { 
        opacity: 0.4; 
        transform: scale(1);
        filter: blur(0px);
    }
    50% { 
        opacity: 0.2; 
        transform: scale(1.2);
        filter: blur(1px);
    }
    100% { 
        opacity: 0.4; 
        transform: scale(1);
        filter: blur(0px);
    }
}

/* Phosphor persistence effect - mimics CRT screen glow */
@keyframes pinche-phosphor-persistence {
    0% { 
        opacity: 0.15;
        transform: scale(1);
    }
    25% { 
        opacity: 0.25;
        transform: scale(1.1);
    }
    75% { 
        opacity: 0.1;
        transform: scale(1.3);
    }
    100% { 
        opacity: 0.15;
        transform: scale(1);
    }
}

/* Inline cursor that follows the text */
.pinche-typewriter-text .pinche-typewriter-cursor {
    display: inline;
    width: 0.8ch;
    height: 1em;
    background-color: #39ff14;
    margin-left: 0;
    animation: pinche-vintage-blink 0.8s infinite;
    vertical-align: baseline;
    position: relative;
    border: none;
    box-shadow: 
        0 0 6px #39ff14,
        0 0 12px #39ff14,
        0 0 18px rgba(57, 255, 20, 0.6);
}

.pinche-typewriter-text .pinche-typewriter-cursor::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: radial-gradient(ellipse, rgba(57, 255, 20, 0.4) 0%, rgba(57, 255, 20, 0.2) 40%, transparent 70%);
    z-index: -1;
    animation: pinche-vintage-ghost-trail 1.5s ease-in-out infinite;
}

.pinche-typewriter-text .pinche-typewriter-cursor::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: rgba(57, 255, 20, 0.15);
    animation: pinche-phosphor-persistence 2s ease-in-out infinite;
    z-index: -2;
}

/* Golden Highlight Effect */
.pinche-highlight-word {
    color: #ffd700;
    text-shadow: 
        0 0 3px #ffd700,
        0 0 6px #ffd700,
        0 0 12px #ffa500;
    animation: pinche-golden-glow 3s ease-in-out infinite alternate;
}

@keyframes pinche-golden-glow {
    from {
        text-shadow: 
            0 0 3px #ffd700,
            0 0 6px #ffd700,
            0 0 12px #ffa500;
    }
    to {
        text-shadow: 
            0 0 6px #ffd700,
            0 0 12px #ffd700,
            0 0 18px #ffa500,
            0 0 24px #ff8c00;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pinche-hero {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .pinche-hero-logo {
        width: 630px; /* Increased by 40% from original 450px */
        height: 630px; /* Increased by 40% from original 450px */
    }

    .pinche-hero-logo-container {
        margin-bottom: -90px; /* Moved higher - increased from -60 to -90 */
    }

    .pinche-hero-text-container {
        margin-top: -70px; /* Moved higher - increased from -40 to -70 */
    }

    .pinche-hero-wrapper {
        padding: 20px 20px; /* Reduced padding */
        margin: 20px;
        max-width: 95%;
    }
    
    .pinche-typewriter-text {
        font-size: clamp(1rem, 2.8vw, 1.5rem); /* Slightly larger on mobile */
        max-width: 95%; /* Use more screen width */
    }
}

@media (max-width: 600px) {
    .pinche-hero-logo {
        width: 532px; /* Increased by 40% from original 380px */
        height: 532px; /* Increased by 40% from original 380px */
    }

    .pinche-hero-logo-container {
        margin-bottom: -68px; /* Moved higher - increased from -45 to -68 */
    }

    .pinche-hero-text-container {
        margin-top: -45px; /* Moved higher - increased from -30 to -45 */
    }

    .pinche-hero-wrapper {
        padding: 15px 15px; /* Reduced padding */
        margin: 15px;
    }
}

@media (max-width: 480px) {
    .pinche-hero-logo {
        width: 448px; /* Increased by 40% from original 320px */
        height: 448px; /* Increased by 40% from original 320px */
    }

    .pinche-hero-logo-container {
        margin-bottom: -30px; /* Moved higher - increased from -20 to -30 */
    }

    .pinche-hero-text-container {
        margin-top: -15px; /* Moved higher - increased from -10 to -15 */
    }
    
    .pinche-hero-wrapper {
        padding: 15px 12px; /* Minimal padding */
        margin: 12px;
    }
    
    .pinche-typewriter-text {
        font-size: clamp(0.9rem, 2.5vw, 1.3rem); /* Maintain readability on small screens */
        max-width: 98%; /* Use almost full width */
    }
}

@media (max-width: 400px) {
    .pinche-hero-logo {
        width: 392px; /* Increased by 40% from original 280px */
        height: 392px; /* Increased by 40% from original 280px */
    }

    .pinche-hero-wrapper {
        padding: 20px 10px;
        margin: 10px;
    }
    
    /* Ensure text is visible on small mobile screens */
    .pinche-typewriter-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 1.1rem !important;
        color: #39ff14 !important;
    }
}

/* EXTREME SPACING OVERRIDE - Force text to be extremely close to logo */
.pinche-hero-text-container {
    margin-top: -180px !important; /* Moved higher - increased from -150 to -180 */
    transform: translateY(-100px) !important; /* More aggressive transform from -80 to -100 */
    position: relative !important;
    z-index: 100 !important;
    top: -50px !important; /* Moved higher - increased from -30 to -50 */
}

.pinche-hero-logo-container {
    margin-bottom: -200px !important; /* Moved higher - increased from -150 to -200 */
    transform: translateY(-40px) !important; /* More aggressive transform from -20 to -40 */
    position: relative !important;
    top: 40px !important; /* Increased from 20 to 40 */
}

.pinche-hero-wrapper {
    padding: 0px !important;
    margin: 0 !important;
    line-height: 0 !important;
}

/* Desktop override for extreme closeness */
@media (min-width: 769px) {
    .pinche-hero-text-container {
        margin-top: -100px !important;
        transform: translateY(-50px) !important;
        top: 0px !important;
    }
    
    .pinche-hero-logo-container {
        margin-bottom: -100px !important;
        transform: translateY(0px) !important;
        top: 20px !important;
    }
    
    .pinche-hero-wrapper {
        transform: scale(0.95) translateY(0px) !important;
    }
}

/* Mobile override for extreme closeness */
@media (max-width: 768px) {
    .pinche-hero-text-container {
        margin-top: -120px !important;
        transform: translateY(-60px) !important;
        top: -20px !important;
    }
    
    .pinche-hero-logo-container {
        margin-bottom: -120px !important;
        transform: translateY(20px) !important;
        top: 30px !important;
    }
    
    .pinche-hero-logo {
        width: 500px !important;
        height: 500px !important;
    }
}