/* =====================================================
   Index Page - Hero & Terminal Styles
   ===================================================== */

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Neural Canvas Background */
.neural-canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Terminal Window */
.terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    background: var(--terminal-header);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: var(--terminal-dot-red); }
.terminal-dot.yellow { background: var(--terminal-dot-yellow); }
.terminal-dot.green { background: var(--terminal-dot-green); }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.1s; }
.terminal-line:nth-child(2) { animation-delay: 0.3s; }
.terminal-line:nth-child(3) { animation-delay: 0.5s; }
.terminal-line:nth-child(4) { animation-delay: 0.7s; }
.terminal-line:nth-child(5) { animation-delay: 0.9s; }
.terminal-line:nth-child(6) { animation-delay: 1.1s; }
.terminal-line:nth-child(7) { animation-delay: 1.3s; }
.terminal-line:nth-child(8) { animation-delay: 1.5s; }
.terminal-line:nth-child(9) { animation-delay: 1.7s; }
.terminal-line:nth-child(10) { animation-delay: 1.9s; }

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

.prompt {
    color: var(--terminal-prompt);
}

.command {
    color: var(--terminal-command);
}

.output {
    color: var(--terminal-output);
    margin-left: 1rem;
}

.output.highlight {
    color: var(--accent-primary);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--terminal-cursor);
    animation: cursorBlink 1s infinite;
    vertical-align: text-bottom;
}

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

/* Typing Effect */
.typing-text {
    overflow: hidden;
    border-right: 2px solid var(--terminal-cursor);
    white-space: nowrap;
    animation: typing 2s steps(40) forwards, blinkCaret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: var(--terminal-cursor); }
}

/* Terminal Links */
.terminal-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.terminal-link {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--terminal-border);
    border-radius: 4px;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.terminal-link:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Layout Adjustments */
@media (min-width: 1025px) {
    .has-sidebar .hero {
        justify-content: center;
    }

    .has-sidebar .hero-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - var(--nav-height) - 70px);
    }
}

/* =====================================================
   Mode-specific Hero Styles
   ===================================================== */

/* Hide/Show heroes based on mode */
.hero-terminal,
.hero-clean,
.hero-neural {
    display: none;
}

html[data-mode="terminal"] .hero-terminal {
    display: block;
}

html[data-mode="clean"] .hero-clean {
    display: block;
}

html[data-mode="neural"] .hero-neural {
    display: block;
}

/* =====================================================
   Clean Mode Hero - Professional Card
   ===================================================== */

.hero-clean {
    text-align: center;
}

.clean-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.clean-avatar {
    display: none;
}

.clean-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.clean-title {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.clean-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.clean-pitch {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.clean-pitch p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Clean Domains */
.clean-domains {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.clean-domain {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.clean-domain:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.clean-domain-icon {
    font-size: 1rem;
}

/* Clean Stats */
.clean-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.clean-stat {
    text-align: center;
}

.clean-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.clean-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Clean Interests */
.clean-interests {
    margin-bottom: 1.5rem;
    text-align: center;
}

.clean-interests-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.clean-interests-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.clean-interest-tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.clean-interest-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.clean-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.clean-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.clean-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.clean-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.clean-status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.clean-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.clean-link {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.clean-link-primary {
    background: var(--accent-primary);
    color: white;
}

.clean-link-primary:hover {
    background: var(--accent-secondary);
    box-shadow: var(--shadow-glow);
}

.clean-link-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.clean-link-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Mobile Actions - Hidden by default, shown on mobile */
.clean-mobile-actions {
    display: none;
}

/* =====================================================
   Neural Mode Hero - 3D Grid with Animated Nodes
   ===================================================== */

.hero-neural {
    position: relative;
    overflow: hidden;
}

.neural-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

/* Neural Network Canvas Background */
.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Neural Card */
.neural-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.neural-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--neural-gradient);
}

.neural-header {
    margin-bottom: 2rem;
}

.neural-name {
    font-size: 2rem;
    font-weight: 700;
    background: var(--neural-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.neural-title {
    font-size: 1.1rem;
    color: var(--neural-cyan);
    margin-bottom: 0.25rem;
}

.neural-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Neural Domain Tags */
.neural-domains {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.neural-domain {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.neural-domain:hover {
    border-color: var(--neural-cyan);
    color: var(--neural-cyan);
}

.neural-domain-icon {
    font-size: 1rem;
}

.neural-domain-ai { --domain-color: var(--neural-cyan); }
.neural-domain-medical { --domain-color: var(--neural-pink); }
.neural-domain-3d { --domain-color: var(--neural-purple); }
.neural-domain-teaching { --domain-color: #f59e0b; }
.neural-domain-dev { --domain-color: #10b981; }

.neural-domain-ai:hover { border-color: var(--neural-cyan); color: var(--neural-cyan); }
.neural-domain-medical:hover { border-color: var(--neural-pink); color: var(--neural-pink); }
.neural-domain-3d:hover { border-color: var(--neural-purple); color: var(--neural-purple); }
.neural-domain-teaching:hover { border-color: #f59e0b; color: #f59e0b; }
.neural-domain-dev:hover { border-color: #10b981; color: #10b981; }

/* Neural Stats */
.neural-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

/* Neural Interests */
.neural-interests {
    margin-bottom: 2rem;
    text-align: center;
}

.neural-interests-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.neural-interests-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.neural-interest-tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.neural-interest-tag:hover {
    border-color: var(--neural-cyan);
    color: var(--neural-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.neural-stat {
    text-align: center;
}

.neural-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neural-cyan);
    font-family: var(--font-mono);
}

.neural-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Neural Contact */
.neural-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.neural-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.neural-contact-item svg {
    width: 14px;
    height: 14px;
    color: var(--neural-cyan);
}

/* Neural Status with pulse animation */
.neural-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--neural-cyan);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--neural-cyan);
    margin-bottom: 1.5rem;
}

.neural-status-pulse {
    width: 8px;
    height: 8px;
    background: var(--neural-cyan);
    border-radius: 50%;
    animation: neuralStatusPulse 2s infinite;
}

@keyframes neuralStatusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
    }
}

/* Neural Links */
.neural-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.neural-link {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.neural-link-primary {
    background: var(--neural-gradient);
    color: white;
}

.neural-link-primary:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.neural-link-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.neural-link-secondary:hover {
    border-color: var(--neural-cyan);
    color: var(--neural-cyan);
}

/* =====================================================
   Mobile Responsive Styles
   ===================================================== */

@media (max-width: 768px) {
    /* Hero section adjustments */
    .hero {
        padding: 1rem;
        min-height: calc(100vh - 110px);
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    /* Terminal mode mobile */
    .terminal {
        border-radius: 8px;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .terminal-header {
        padding: 0.5rem 0.75rem;
    }

    .terminal-title {
        font-size: 0.65rem;
    }

    .terminal-dot {
        width: 10px;
        height: 10px;
    }

    .output {
        margin-left: 0.5rem;
        word-break: break-word;
    }

    .terminal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .terminal-link {
        text-align: center;
        font-size: 0.8rem;
    }

    /* Clean mode mobile */
    .clean-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .clean-name {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .clean-title {
        font-size: 0.9rem;
    }

    .clean-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    /* Domains - wrap like interests on mobile */
    .clean-domains {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 1rem;
        gap: 0.35rem;
    }

    .clean-domain {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        border-radius: 15px;
    }

    .clean-domain-icon {
        font-size: 0.75rem;
    }

    /* Stats grid - single column on mobile */
    .clean-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .clean-stat {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .clean-stat-value {
        font-size: 1rem;
    }

    .clean-stat-label {
        font-size: 0.7rem;
    }

    /* Interests */
    .clean-interests {
        margin-bottom: 1rem;
    }

    .clean-interests-title {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .clean-interests-tags {
        gap: 0.35rem;
    }

    .clean-interest-tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    /* Contact */
    .clean-contact {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }

    .clean-contact-item {
        font-size: 0.8rem;
    }

    .clean-contact-item svg {
        width: 14px;
        height: 14px;
    }

    /* Status */
    .clean-status {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    /* Links */
    .clean-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .clean-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    /* Hide mobile profile button in nav bar */
    .mobile-nav-profile {
        display: none !important;
    }

    /* Show mobile actions in clean-card */
    .clean-mobile-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .clean-mobile-contacts {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .clean-mobile-contacts .quick-contact-btn {
        width: 36px;
        height: 36px;
    }

    .clean-mobile-contacts .quick-contact-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Tooltip below on mobile (avoid overflow above card) */
    .clean-mobile-contacts .quick-contact-btn::after {
        bottom: auto;
        top: calc(100% + 8px);
    }

    .clean-mobile-controls {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .clean-mobile-controls .control-btn {
        height: 32px;
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Extra small mobile */
@media (max-width: 380px) {
    .hero {
        padding: 0.75rem;
    }

    .clean-card {
        padding: 1rem 0.75rem;
    }

    .clean-name {
        font-size: 1.2rem;
    }

    .clean-title {
        font-size: 0.8rem;
    }

    .clean-stat-value {
        font-size: 0.9rem;
    }

    .terminal-body {
        padding: 0.75rem;
        font-size: 0.7rem;
    }
}

/* Responsive for neural stats */
@media (max-width: 480px) {
    .neural-stats {
        grid-template-columns: 1fr;
    }

    .neural-contact {
        flex-direction: column;
        gap: 0.75rem;
    }

    .neural-card {
        padding: 1.5rem 1rem;
    }

    .neural-name {
        font-size: 1.4rem;
    }

    .neural-title {
        font-size: 0.9rem;
    }

    .neural-domains {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
    }

    .neural-domain {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        border-radius: 15px;
    }

    .neural-links {
        flex-direction: column;
    }

    .neural-link {
        width: 100%;
        text-align: center;
    }
}
